#pragma once
#include "framework.h"
#include "Geom.h"
#include "GeomEffect.h"
#include "Collision.h"

using namespace poly;

class Game : public IGame
{
public:
	Game( HINSTANCE hInst, HWND hWnd );
	virtual void onCreateGraphics( D3DDevice device );
	virtual void onResetGraphics( D3DDevice device );

	virtual void onFrameMove(float dt);
	virtual void onFrameRender(float dt);

	//virtual void onLostGraphics();
	virtual void onDestroyGraphics();

private:
	D3DDevice	m_d3dDevice;

	SInput		m_input;
	Camera		m_camera;

	GeomEffect	m_geomEffect;
	Geom		m_triangle;
	Geom		m_collisionTriangle;
	Geom		m_overlapGeom;

	RigidBody	m_playerBody;
	RigidBody	m_playerFollower;

	poly::Polygon	m_playerPoly;
	poly::Polygon	m_collisionPoly;
};
